package cn.xenosp.server.module.emailAccount.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 邮箱账号表
 * @TableName sys_mail_account
 */
@TableName(value ="sys_mail_account")
@Data
public class SysMailAccount implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id")
    private String id;

    /**
     * 邮箱
     */
    @TableField(value = "mail")
    private String mail;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * SMTP 服务器域名
     */
    @TableField(value = "host")
    private String host;

    /**
     * SMTP 服务器端口
     */
    @TableField(value = "port")
    private Integer port;

    /**
     * 是否开启 SSL
     */
    @TableField(value = "ssl_enable")
    private Boolean sslEnable;

    /**
     * 是否开启 STARTTLS
     */
    @TableField(value = "starttls_enable")
    private Boolean starttlsEnable;

    /**
     * 创建者
     */
    @TableField(value = "creator",fill = FieldFill.INSERT)
    private String creator;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "updater",fill = FieldFill.INSERT_UPDATE)
    private String updater;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "deleted")
    private Boolean deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}